package com.teasale.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName goods
 */
@TableName(value ="goods")
public class Goods implements Serializable {
    /**
     * 商品编号
     */
    @TableId
    private String goodsId;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 数量
     */
    private Integer goodsNum;

    /**
     * 商品价格
     */
    private Double goodsPrice;

    /**
     * 商品图片
     */
    private String goodsImgurl;

    /**
     * 商品描述
     */
    private String goodsDes;




    /**
     * 商品编号
     */
    private String goodsOutId;



    public String getGoodsDes() {
        return goodsDes;
    }

    public void setGoodsDes(String goodsDes) {
        this.goodsDes = goodsDes;
    }

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 商品编号
     */
    public String getGoodsId() {
        return goodsId;
    }

    /**
     * 商品编号
     */
    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    /**
     * 商品名称
     */
    public String getGoodsName() {
        return goodsName;
    }

    /**
     * 商品名称
     */
    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    /**
     * 数量
     */
    public Integer getGoodsNum() {
        return goodsNum;
    }

    /**
     * 数量
     */
    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    /**
     * 商品价格
     */
    public Double getGoodsPrice() {
        return goodsPrice;
    }

    /**
     * 商品价格
     */
    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    /**
     * 商品图片
     */
    public String getGoodsImgurl() {
        return goodsImgurl;
    }

    /**
     * 商品图片
     */
    public void setGoodsImgurl(String goodsImgurl) {
        this.goodsImgurl = goodsImgurl;
    }
    public String getGoodsOutId() {
        return goodsOutId;
    }

    public void setGoodsOutId(String goodsOutId) {
        this.goodsOutId = goodsOutId;
    }
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Goods other = (Goods) that;
        return (this.getGoodsId() == null ? other.getGoodsId() == null : this.getGoodsId().equals(other.getGoodsId()))
            && (this.getGoodsName() == null ? other.getGoodsName() == null : this.getGoodsName().equals(other.getGoodsName()))
            && (this.getGoodsNum() == null ? other.getGoodsNum() == null : this.getGoodsNum().equals(other.getGoodsNum()))
            && (this.getGoodsPrice() == null ? other.getGoodsPrice() == null : this.getGoodsPrice().equals(other.getGoodsPrice()))
            && (this.getGoodsImgurl() == null ? other.getGoodsImgurl() == null : this.getGoodsImgurl().equals(other.getGoodsImgurl()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getGoodsId() == null) ? 0 : getGoodsId().hashCode());
        result = prime * result + ((getGoodsName() == null) ? 0 : getGoodsName().hashCode());
        result = prime * result + ((getGoodsNum() == null) ? 0 : getGoodsNum().hashCode());
        result = prime * result + ((getGoodsPrice() == null) ? 0 : getGoodsPrice().hashCode());
        result = prime * result + ((getGoodsImgurl() == null) ? 0 : getGoodsImgurl().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", goodsId=").append(goodsId);
        sb.append(", goodsName=").append(goodsName);
        sb.append(", goodsNum=").append(goodsNum);
        sb.append(", goodsPrice=").append(goodsPrice);
        sb.append(", goodsImgurl=").append(goodsImgurl);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}